<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>我要买号</title>

    <link rel="stylesheet" href="./js/lib/bootstrap-4.6.2/css/bootstrap.min.css">

    <link rel="stylesheet" href="./styles/base.css">
    <link rel="stylesheet" href="./styles/common.css">
    <link rel="stylesheet" href="./styles/buy.css">

    <script src="./js/lib/jquery-3.7.1.min.js"></script>
    <script src="./js/lib/bootstrap-4.6.2/js/bootstrap.min.js"></script>
</head>

<body>
    <div class="home-container">
        <!-- 头部 -->
        <!-- 导航头 -->
        <div class="wrap-bar">
            <!-- 内容版心区域 -->
            <div class="layout-1226 welcome-wrap">
                <!-- 欢迎语 -->
                <div class="welcome-word">
                    你好，欢迎来到辉光网络
                </div>
                <!-- 右侧用户 -->
                <div class="bar-user">
                    <a href="">登录</a>
                    <a href="">注册</a>
                    <a href="">个人中心</a>
                </div>
            </div>
        </div>

        <!-- 固定菜单 -->
        <div class="home-tool-bar">
            <div class="top-title">快捷导航</div>
            <div class="tool-list">
                <a href="javaScript:;" class="item">
                    <img src="/images/kjdh_01.png" class="static">
                    <span class="tool-title">购物车</span>
                </a>
                <a href="javaScript:;" class="item">
                    <img src="/images/kjdh_02.png" class="static">
                    <span class="tool-title">我要出售</span>
                </a>
                <a href="javaScript:;" class="item">
                    <img src="/images/kjdh_03.png" class="static">
                    <span class="tool-title">投诉售后</span>
                </a>
                <a href="javaScript:;" class="item">
                    <img src="/images/kjdh_04.png" class="static">
                    <span class="tool-title">帮助中心</span>
                </a>
                <a href="javaScript:;" class="item">
                    <img src="/images/kjdh_05.png" class="static">
                    <span class="tool-title">微信咨询</span>
                </a>
                <a href="javaScript:;" class="item">
                    <img src="/images/kjdh_06.png" class="static">
                    <span class="tool-title">在线咨询</span>
                </a>
                <a href="javaScript:;" class="item">
                    <img src="/images/kjdh_07.png" class="static">
                    <span class="tool-title">商务合作</span>
                </a>
            </div>
        </div>
        <div class="layout-1226">
            <div class="wrap-header">
                <!-- logo -->
                <a href="javaScript:;">
                    <img src="/images/logo-hg.jpg" alt="huiguang">
                </a>
                <!-- 搜索框 -->
                <div class="wrap-select">
                    <div class="input-group">
                        <select class="form-control">
                            <option selected>王者荣耀</option>
                            <option value="1">逆水寒</option>
                            <option value="2">绝地求生</option>
                            <option value="3">我的世界</option>
                        </select>
                        <input type="text" class="form-control" placeholder="请搜索你喜欢的游戏..." />
                        <div class="input-group-append">
                            <button type="button" class="btn btn-primary">搜索</button>
                        </div>
                    </div>
                    <div class="hot-game d-flex">
                        <span>热门游戏：</span>
                        <ul class="d-flex">
                            <li>穿越火线</li>
                            <li>枪战王者</li>
                            <li>王者荣耀</li>
                            <li>地下城与勇士</li>
                        </ul>
                    </div>
                </div>
            </div>
            <!-- 导航栏 -->
            <div class="nav-wrap">
                <ul>
                    <li>
                        <a href="javaScript:;">
                            <span>首页</span>
                        </a>
                    </li>
                    <li class="active">
                        <a href="javaScript:;">
                            <span>我要买号</span>
                        </a>
                    </li>
                    <li>
                        <a href="javaScript:;">
                            <span>我要卖号</span>
                        </a>
                    </li>
                    <li>
                        <a href="javaScript:;">
                            <span>个人中心</span>
                        </a>
                    </li>
                    <li>
                        <a href="javaScript:;">
                            <span>联系我们</span>
                        </a>
                    </li>
                    <li>
                        <a href="javaScript:;">
                            <span>帮助中心</span>
                        </a>
                    </li>
                </ul>
            </div>
            <!-- 内容主体 -->
            <div class="nav-link">
                <span>您的位置：</span>
                <span><a href="#">首页 > </a></span>
                <span><a href="#" class="current">全部游戏</a></span>
            </div>
            <div class="page-main">
                <div class="tab-box">
                    <div class="tab-list">
                        <ul>
                            <li class="current">全部游戏</li>
                            <li>端游</li>
                            <li>手游</li>
                            <li>其它</li>
                        </ul>
                    </div>
                    <div class="tab-con">
                        <div class="tab-content" style="display: block">
                            <div class="game-box">
                                <ul class="game-list row">
                                    <li class="game-item ">
                                        <a href="javaScript:;">
                                            <img src="./images/game_01.jpeg">
                                            <div class="game-title">
                                                穿越火线
                                            </div>
                                        </a>
                                    </li>
                                    <li class="game-item ">
                                        <a href="javaScript:;">
                                            <img src="./images/game_02.jpeg">
                                            <div class="game-title">
                                                逆战
                                            </div>
                                        </a>
                                    </li>
                                    <li class="game-item ">
                                        <a href="javaScript:;">
                                            <img src="./images/game_03.png">
                                            <div class="game-title">
                                                枪战王者
                                            </div>
                                        </a>
                                    </li>
                                    <li class="game-item ">
                                        <a href="javaScript:;">
                                            <img src="./images/game_04.jpeg">
                                            <div class="game-title">
                                                QQ飞车手游
                                            </div>
                                        </a>
                                    </li>
                                    <li class="game-item ">
                                        <a href="javaScript:;">
                                            <img src="./images/game_05.jpeg">
                                            <div class="game-title">
                                                王者荣耀
                                            </div>
                                        </a>
                                    </li>
                                    <li class="game-item ">
                                        <a href="javaScript:;">
                                            <img src="./images/game_04.jpeg">
                                            <div class="game-title">
                                                无畏契约
                                            </div>
                                        </a>
                                    </li>
                                    <li class="game-item ">
                                        <a href="javaScript:;">
                                            <img src="./images/game_01.jpeg">
                                            <div class="game-title">
                                                穿越火线
                                            </div>
                                        </a>
                                    </li>
                                    <li class="game-item ">
                                        <a href="javaScript:;">
                                            <img src="./images/game_02.jpeg">
                                            <div class="game-title">
                                                逆战
                                            </div>
                                        </a>
                                    </li>
                                    <li class="game-item ">
                                        <a href="javaScript:;">
                                            <img src="./images/game_03.png">
                                            <div class="game-title">
                                                枪战王者
                                            </div>
                                        </a>
                                    </li>
                                    <li class="game-item ">
                                        <a href="javaScript:;">
                                            <img src="./images/game_04.jpeg">
                                            <div class="game-title">
                                                QQ飞车手游
                                            </div>
                                        </a>
                                    </li>
                                    <li class="game-item ">
                                        <a href="javaScript:;">
                                            <img src="./images/game_05.jpeg">
                                            <div class="game-title">
                                                王者荣耀
                                            </div>
                                        </a>
                                    </li>
                                    <li class="game-item ">
                                        <a href="javaScript:;">
                                            <img src="./images/game_04.jpeg">
                                            <div class="game-title">
                                                无畏契约
                                            </div>
                                        </a>
                                    </li>
                                    <li class="game-item ">
                                        <a href="javaScript:;">
                                            <img src="./images/game_01.jpeg">
                                            <div class="game-title">
                                                穿越火线
                                            </div>
                                        </a>
                                    </li>
                                    <li class="game-item ">
                                        <a href="javaScript:;">
                                            <img src="./images/game_02.jpeg">
                                            <div class="game-title">
                                                逆战
                                            </div>
                                        </a>
                                    </li>
                                    <li class="game-item ">
                                        <a href="javaScript:;">
                                            <img src="./images/game_03.png">
                                            <div class="game-title">
                                                枪战王者
                                            </div>
                                        </a>
                                    </li>
                                    <li class="game-item ">
                                        <a href="javaScript:;">
                                            <img src="./images/game_04.jpeg">
                                            <div class="game-title">
                                                QQ飞车手游
                                            </div>
                                        </a>
                                    </li>
                                    <li class="game-item ">
                                        <a href="javaScript:;">
                                            <img src="./images/game_05.jpeg">
                                            <div class="game-title">
                                                王者荣耀
                                            </div>
                                        </a>
                                    </li>
                                    <li class="game-item ">
                                        <a href="javaScript:;">
                                            <img src="./images/game_04.jpeg">
                                            <div class="game-title">
                                                无畏契约
                                            </div>
                                        </a>
                                    </li>
                                    <li class="game-item ">
                                        <a href="javaScript:;">
                                            <img src="./images/game_01.jpeg">
                                            <div class="game-title">
                                                穿越火线
                                            </div>
                                        </a>
                                    </li>
                                    <li class="game-item ">
                                        <a href="javaScript:;">
                                            <img src="./images/game_02.jpeg">
                                            <div class="game-title">
                                                逆战
                                            </div>
                                        </a>
                                    </li>
                                    <li class="game-item ">
                                        <a href="javaScript:;">
                                            <img src="./images/game_03.png">
                                            <div class="game-title">
                                                枪战王者
                                            </div>
                                        </a>
                                    </li>
                                    <li class="game-item ">
                                        <a href="javaScript:;">
                                            <img src="./images/game_04.jpeg">
                                            <div class="game-title">
                                                QQ飞车手游
                                            </div>
                                        </a>
                                    </li>
                                    <li class="game-item ">
                                        <a href="javaScript:;">
                                            <img src="./images/game_05.jpeg">
                                            <div class="game-title">
                                                王者荣耀
                                            </div>
                                        </a>
                                    </li>
                                    <li class="game-item ">
                                        <a href="javaScript:;">
                                            <img src="./images/game_04.jpeg">
                                            <div class="game-title">
                                                无畏契约
                                            </div>
                                        </a>
                                    </li>
                                </ul>
                            </div>
                        </div>
                        <div class="tab-content">
                            <div class="game-box">
                                <ul class="game-list row">
                                    <li class="game-item ">
                                        <a href="javaScript:;">
                                            <img src="./images/game_03.png">
                                            <div class="game-title">
                                                枪战王者
                                            </div>
                                        </a>
                                    </li>
                                    <li class="game-item ">
                                        <a href="javaScript:;">
                                            <img src="./images/game_04.jpeg">
                                            <div class="game-title">
                                                QQ飞车手游
                                            </div>
                                        </a>
                                    </li>
                                    <li class="game-item ">
                                        <a href="javaScript:;">
                                            <img src="./images/game_05.jpeg">
                                            <div class="game-title">
                                                王者荣耀
                                            </div>
                                        </a>
                                    </li>
                                    <li class="game-item ">
                                        <a href="javaScript:;">
                                            <img src="./images/game_04.jpeg">
                                            <div class="game-title">
                                                无畏契约
                                            </div>
                                        </a>
                                    </li>
                                </ul>
                            </div>
                        </div>
                        <div class="tab-content">
                            <div class="game-box">
                                <ul class="game-list row">
                                    <li class="game-item ">
                                        <a href="javaScript:;">
                                            <img src="./images/game_03.png">
                                            <div class="game-title">
                                                枪战王者
                                            </div>
                                        </a>
                                    </li>
                                    <li class="game-item ">
                                        <a href="javaScript:;">
                                            <img src="./images/game_04.jpeg">
                                            <div class="game-title">
                                                QQ飞车手游
                                            </div>
                                        </a>
                                    </li>
                                    <li class="game-item ">
                                        <a href="javaScript:;">
                                            <img src="./images/game_01.jpeg">
                                            <div class="game-title">
                                                穿越火线
                                            </div>
                                        </a>
                                    </li>
                                    <li class="game-item ">
                                        <a href="javaScript:;">
                                            <img src="./images/game_02.jpeg">
                                            <div class="game-title">
                                                逆战
                                            </div>
                                        </a>
                                    </li>
                                    <li class="game-item ">
                                        <a href="javaScript:;">
                                            <img src="./images/game_05.jpeg">
                                            <div class="game-title">
                                                王者荣耀
                                            </div>
                                        </a>
                                    </li>
                                    <li class="game-item ">
                                        <a href="javaScript:;">
                                            <img src="./images/game_04.jpeg">
                                            <div class="game-title">
                                                无畏契约
                                            </div>
                                        </a>
                                    </li>
                                </ul>
                            </div>
                        </div>
                        <div class="tab-content">
                            <div class="game-box">
                                <ul class="game-list row">
                                    <li class="game-item ">
                                        <a href="javaScript:;">
                                            <img src="./images/game_01.jpeg">
                                            <div class="game-title">
                                                穿越火线
                                            </div>
                                        </a>
                                    </li>
                                    <li class="game-item ">
                                        <a href="javaScript:;">
                                            <img src="./images/game_02.jpeg">
                                            <div class="game-title">
                                                逆战
                                            </div>
                                        </a>
                                    </li>
                                    <li class="game-item ">
                                        <a href="javaScript:;">
                                            <img src="./images/game_03.png">
                                            <div class="game-title">
                                                枪战王者
                                            </div>
                                        </a>
                                    </li>
                                    <li class="game-item ">
                                        <a href="javaScript:;">
                                            <img src="./images/game_04.jpeg">
                                            <div class="game-title">
                                                QQ飞车手游
                                            </div>
                                        </a>
                                    </li>              
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!-- 底部 -->
            <div class="site-footer">
                <div class="layout-1226">
                    <div class="footer-service">
                        <ul>
                            <li>
                                <img src="./images/aq.png" alt="">
                                <div class="right">
                                    <h3>诚信安全</h3>
                                    <span>权威认证,安全便捷</span>
                                </div>
                            </li>
                            <li>
                                <img src="./images/hs1.png" alt="">
                                <div class="right">
                                    <h3>急速回收</h3>
                                    <span>不玩回收,玩腻换号</span>
                                </div>
                            </li>
                            <li>
                                <img src="./images/kf_01.png" alt="">
                                <div class="right">
                                    <h3>专属客服</h3>
                                    <span>1对1客服,优质服务</span>
                                </div>
                            </li>
                            <li>
                                <img src="./images/game.png" alt="">
                                <div class="right">
                                    <h3>精品账号</h3>
                                    <span>各种账号,应有尽有</span>
                                </div>
                            </li>
                        </ul>
                    </div>

                </div>
            </div>
        </div>

        <!-- 底部声明 -->
        <div class="site-info">
            <div class="layout-1226">
                <!-- 声明文字 -->
                <div>
                    <p>
                        <a href="javaScript:;">关于我们</a>
                        <span>|</span>
                        <a href="javaScript:;">联系我们</a>
                        <span>|</span>
                        <a href="javaScript:;">隐私政策</a>
                        <span>|</span>
                        <a href="javaScript:;">政务协议</a>
                        <span>|</span>
                        <a href="javaScript:;">帮助中心</a>
                    </p>
                    <p>
                        <a href="javaScript:;">备案号：xxxxxxxxxx</a>
                        <a href="javaScript:;">公司名称：江苏辉光网络科技有限公司</a>
                        <a href="javaScript:;">© 版权所有</a>
                    </p>
                </div>
            </div>
        </div>

    </div>
</body>

<script>
    // 获取元素
    var tabList = document.querySelector(".tab-list");
    var tabListLis = tabList.querySelectorAll("li");
    var tabItems = document.querySelectorAll(".tab-content");
    // 注册事件
    for (let i = 0; i < tabListLis.length; i++) {
        // 给每个li添加个data-index属性，为了对应上各自的内容
        tabListLis[i].setAttribute("data-index", i);
        tabListLis[i].onclick = function () {
            // 去掉其他li的current类名
            for (let i = 0; i < tabListLis.length; i++) {
                tabListLis[i].className = "";
            }
            // 设置自己的的current类名
            this.className = "current";
            // 获取当前模块li的data-index值
            var index = this.getAttribute("data-index");
            console.log(index);
            // 去掉其他模块内容的显示
            for (let i = 0; i < tabItems.length; i++) {
                tabItems[i].style.display = "";
            }
            // 让自己的显示
            tabItems[index].style.display = "block";
        };
    }
</script>

</html>